package com.google.gwt.indexeddb.client;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * @author le_404444 The IDBSuccessEvent of the IndexedDB API represents the
 *         successful completion of an asynchronous request on the source.
 */

public class IDBSuccessEvent extends IDBEvent {

  protected IDBSuccessEvent() {
  }

  /**
   * @return The result of the successful completion of the request. If this
   *         attribute returns an object representing data from an object store,
   *         then it returns the same instance every time. If you change that
   *         instance, your changes are seen by anyone looking at the instance,
   *         but they do not affect the contents of the object store.
   */
  public final native JavaScriptObject getResult() /*-{
		return this.target.result;
  }-*/;

  public final native String getType() /*-{
		return this.type;
  }-*/;

}
